package com.dhcc.bpm.modules.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OPC_WORK_ORDER")
@ApiModel(value="WorkOrder对象", description="")
public class WorkOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "工单编号")
    @TableField("WORK_ORDER_NO")
    private String workOrderNo;

    @ApiModelProperty(value = "类型")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "主题")
    @TableField("SUBJECT")
    private String subject;

    @ApiModelProperty(value = "正文")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "附件")
    @TableField("FILE_LIST")
    private String fileList;

    @TableField("CREATE_USER")
    private Long createUser;

    @TableField("CREATE_DEPT")
    private Long createDept;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("UPDATE_USER")
    private Long updateUser;

    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @TableField("TENANT_ID")
    private String tenantId;

    @ApiModelProperty(value = "状态0:处理中 ,1:已处理,2:未处理")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "审批意见")
    @TableField("OPINION")
    private String opinion;

    @ApiModelProperty(value = "是否指定处理人")
    @TableField("IS_DISPATCH")
    private String isDispatch;


}
